package com.glut.campusrepair.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Builder;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.NoArgsConstructor;

/**
 * 用户评分表
 *
 * @author sanminzhi
 * @since 2024-07-19 11:26
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("service_evaluation")
public class ServiceEvaluation {

    /**
     * 评价ID
     */
    @TableId(value = "eva_id", type = IdType.AUTO)
    private Integer evaId;

    /**
     * 任务ID
     */
    private Integer taskId;

    /**
     * 维修记录ID
     */
    private Integer maintenanceRecordsId;

    /**
     * 用户编号
     */
    private Integer userNo;

    /**
     * 评价时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date evaTime;

    /**
     * 评分
     */
    private Integer rating;

    /**
     * 评论
     */
    private String comments;
}
